<script setup lang="ts">
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import autofit from 'autofit.js';
import { ElConfigProvider } from 'element-plus';
import { nextTick, onMounted } from 'vue';

import { useAppStore } from '@/store/modules/app';
const appStore = useAppStore();
// const locale = zhCn;
onMounted(() => {
    nextTick(() => {
        autofit.init({
            // dh: 1000,
            // dw: 1920,
            el: '#app',
            resize: true,
        });
    });
});
</script>
<template>
    <el-config-provider :locale="appStore.locale" :size="appStore.size">
        <RouterView />
    </el-config-provider>
</template>
